﻿using System;
using System.Collections.Generic;
using System.Configuration;

using System.Web;
using Orders.Utils;

namespace OrderServer
{
  internal static class DatabaseConnection
  {
    internal static string ConnectionString
    {
      get
      {
        try
        {
          return ConfigurationManager.ConnectionStrings["Orders"].ConnectionString;
        }
        catch (Exception e)
        {
          EventLogHandler.LogError("Unable to read connectionstring from config-file: " + e.Message);
          throw;
        }
      }
    }

  }
}
